package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.bdmc.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceMachineOsModule对象", description = "")
public class DeviceMachineOsModule extends Model<DeviceMachineOsModule> {

  private static final long serialVersionUID = 1L;

  @TableId(value = "os_module_id", type = IdType.AUTO)
  private Integer osModuleId;

  private Integer machineOsId;

  private Integer osModuleNum;
  @Excel(name = "波长")
  private String wavelength;
  @Excel(name = "光功率")
  private String lightPower;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  private Boolean intervalSave;

  @Override
  public Serializable pkVal() {
    return this.osModuleId;
  }

}
